package com.chaodev.base.model;

import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * vcbase
 *
 * @author 95634
 * @描述
 * @date 2023/5/17 18:36
 **/
@ApiModel(value="附件表对象", description="附件表")
public class Att implements Serializable {
    private static final long serialVersionUID = 6531476421574064958L;

    @ApiModelProperty(value = "数据唯一id")
    private Integer id;

    @ApiModelProperty(value = "数据ID，对应具体业务数据ID")
    private Integer dataNo;

    @ApiModelProperty(value = "附件名称")
    private String attName;

    @ApiModelProperty(value = "附件路径")
    private String attPath;

    @ApiModelProperty(value = "下载链接")
    private String dldLink;

    @ApiModelProperty(value = "创建时间")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @JsonFormat(locale="zh",timezone="GMT+8",pattern="yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    @ApiModelProperty(value = "创建人")
    @JsonInclude
    private String cUser;

    @ApiModelProperty(value = "有效标志  0：有效 1：无效")
    private Integer state;

    @ApiModelProperty(value = "更新时间")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @JsonFormat(locale="zh",timezone="GMT+8",pattern="yyyy-MM-dd HH:mm:ss")
    private Date updtTime;

    @ApiModelProperty(value = "更新人")
//    @JsonInclude
    @JSONField(serialize = false)
    private String updtr;

    @ApiModelProperty(value = "业务类型")
    private String bizType;

    @ApiModelProperty(value = "附件类型")
    @JSONField(serialize = false)
    private String addType;

    private String url;

    private long attSize;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }
    public Integer getDataNo() {
        return dataNo;
    }

    public void setDataNo(Integer dataNo) {
        this.dataNo = dataNo;
    }
    public String getAttName() {
        return attName;
    }

    public void setAttName(String attName) {
        this.attName = attName;
    }
    public String getAttPath() {
        return attPath;
    }

    public void setAttPath(String attPath) {
        this.attPath = attPath;
    }
    public String getDldLink() {
        return dldLink;
    }

    public void setDldLink(String dldLink) {
        this.dldLink = dldLink;
    }
    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }
    public String getcUser() {
        return cUser;
    }

    public void setcUser(String cUser) {
        this.cUser = cUser;
    }
    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }
    public Date getUpdtTime() {
        return updtTime;
    }

    public void setUpdtTime(Date updtTime) {
        this.updtTime = updtTime;
    }
    public String getUpdtr() {
        return updtr;
    }

    public void setUpdtr(String updtr) {
        this.updtr = updtr;
    }
    public String getBizType() {
        return bizType;
    }

    public void setBizType(String bizType) {
        this.bizType = bizType;
    }
    public String getAddType() {
        return addType;
    }

    public void setAddType(String addType) {
        this.addType = addType;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public long getAttSize() {
        return attSize;
    }

    public void setAttSize(long attSize) {
        this.attSize = attSize;
    }

    @Override
    public String toString() {
        return "Att{" +
                "id=" + id +
                ", dataNo=" + dataNo +
                ", attName='" + attName + '\'' +
                ", attPath='" + attPath + '\'' +
                ", dldLink='" + dldLink + '\'' +
                ", createTime=" + createTime +
                ", cUser='" + cUser + '\'' +
                ", state=" + state +
                ", updtTime=" + updtTime +
                ", updtr='" + updtr + '\'' +
                ", bizType='" + bizType + '\'' +
                ", addType='" + addType + '\'' +
                ", url='" + url + '\'' +
                ", attSize=" + attSize +
                '}';
    }
}
